import { useDict } from '@/api/dict'

/**
 * @description 获取字典数据
 * @param code 字典code
 * @returns {*}
 */
export async function getDictByCode(code) {
  const { data } = await useDict(code)
  return data
}
